import request from '@/utils/request'
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/servicePositional/insert',
    method: 'post',
    data
  })
}
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-APP/',
    url: 'app/sysDictionary/getDictByCode',
    method: 'get',
    params: {
      dictCode
    }
  })
}
export function get(id) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/servicePositional/get',
    method: 'get',
    params: {
      id
    }
  })
}
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/servicePositional/update',
    method: 'post',
    data
  })
}

